<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>企业网站开发</title>
		<link href="<%=basePath%>css/main.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=basePath%>css/slide.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=basePath%>css/index.css" rel="stylesheet"
			type="text/css" />

		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
		
		


		<script type="text/javascript">
			 $(document).ready(function(e) {
			
			//加载焦点图
			$.ajax(
			{
			
				
				type:"post",
				url:"<%=basePath%>/front/index?cmd=listfocus&"+new Date().getTime(),
				 async: false,
				success: function(focus){
					var msg = $.parseJSON(focus);
				
					for(var i in msg){
						$("#fo ul").append("<li><a href=''><img  src='"+"<%=basePath%>upload/"
						+msg[i].pic+"' alt='"+msg[i].title+"' text='"+msg[i].title+"'/></a></li>");
					}
				}
			});
		});
</script>
<script type="text/javascript"
			src="<%=basePath%>js/myfocus-2.0.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/focus.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/slide.js"></script><style>
#outer ul li {
	list-style-type: none
}

#tab {
	overflow: hidden;
	zoom: 1;
	background: #F5F5F5;
	border: 1px solid #E8E8E8;
}

#tab li {
	float: left;
	color: #6e6e6e;
	border-radius: 6px;
	height: 30px;
	cursor: pointer;
	line-height: 30px;
	padding: 0 20px;
	
}

#tab li.current {
	color: #000;
	background: #ccc;
}

#content>ul {
	line-height: 25px;
	display: none;
	height: 253px;
	width: 448px;
}
</style>


		<script>
	$(function() {

		var $li = $('#tab > li');
		var $ul = $('#content > ul');

		$li.mouseover(function() {
			var $this = $(this);
			var $t = $this.index();
			$li.removeClass();
			$this.addClass('current');
			$ul.css('display', 'none');
			$ul.eq($t).css('display', 'block');
		})

	});
</script>

	</head>

	<body>

		<%@include file="common/top.jsp"%>
		<!--页面顶端top结束-->
		<div class="wrap">

			<%@include file="common/nav.jsp"%>

			<!--nav结束-->
			<div class="ad">
				<div id="boxID">
					<div class="loading">
						<img src="<%=basePath%>image/loading.gif" alt="请稍候..." />
					</div>
					<div class="pic" id="fo">
						<ul>



						</ul>
					</div>
				</div>
				<div class="impotent">
					<div id="outer">

						<ul id="tab">

							<c:forEach items="${newnavSecond}" var="item" begin="0" end="3"
								varStatus="status">
								<c:if test="${status.count==1}">
									<li class="current">
										${item.name}
									</li>
								</c:if>
								<c:if test="${status.count!=1}">
									<li>
										${item.name}
									</li>
								</c:if>




							</c:forEach>

							<span class="title_right"><a href="#">More&gt;&gt;</a>
						</ul>

						<div id="content">
							<ul style="display: block;">

								<div class="pic_news">
									
									<c:forEach items="${newnavSecond}" var="item" begin="0" end="0">
									
											<c:set var="index" value="0"></c:set>
										<c:forEach items="${newlist}" var="art" begin="0">
										
											
											
											<c:if test="${art.nid==item.nid and index<1}">
											
												<c:set var="index" value="${index + 1}"></c:set>
												<p style="text-align: center">
												
													<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a>
												</p>
												<c:set var="exitId" value="0"></c:set>
										  	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${art.intro}<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">[详情]</a>
											</c:if>
										</c:forEach>
									</c:forEach>
								</div>
								<!-- pic_news结束 -->


								<div class="news_list">
									<ul>
										<c:set var="index" value="0"></c:set>
										<c:forEach items="${newnavSecond}" var="item" begin="0"
											end="0">
											<c:forEach items="${newlist}" begin="0" var="art">

												<c:if test="${item.nid==art.nid and index<5}">
													<c:set var="index" value="${index + 1}"></c:set>
													<li>
														<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a><span>${art.createdate}</span>
													</li>
												</c:if>
											</c:forEach>
										</c:forEach>

									</ul>
								</div>
								<!-- news_list -->
							</ul>
							<ul>
								<div class="news_list">

									<ul>
										<c:set var="index" value="0"></c:set>
										<c:forEach items="${newnavSecond}" var="item" begin="1"
											end="1">
											<c:forEach items="${newlist}" begin="0" var="art">

												<c:if test="${item.nid==art.nid and index<5}">
													<c:set var="index" value="${index + 1}"></c:set>
													<li>
														<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a><span>${art.createdate}</span>
													</li>
												</c:if>
											</c:forEach>
										</c:forEach>

									</ul>
								</div>
								<!-- news_list -->
							</ul>
							<ul>
								<div class="news_list">
											
									<ul>
										<c:set var="index" value="0"></c:set>
										<c:forEach items="${newnavSecond}" var="item" begin="2" end="2">
										    
											<c:forEach items="${newlist}" begin="0" var="art">
													
												<c:if test="${item.nid==art.nid and index<5}">
													<c:set var="index" value="${index + 1}"></c:set>
													<li>
														<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a><span>${art.createdate}</span>
													</li>
												</c:if>
											</c:forEach>
										</c:forEach>

									</ul>



								</div>
								<!-- news_list -->
							</ul>
							<ul>
								<div class="news_list">
									<ul>
										<c:set var="index" value="0"></c:set>
										<c:forEach items="${newnavSecond}" var="item" begin="3"
											end="3">
											<c:forEach items="${newlist}" begin="0" var="art">

												<c:if test="${item.nid==art.nid and index<5}">
													<c:set var="index" value="${index + 1}"></c:set>
													<li>
														<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a><span>${art.createdate}</span>
													</li>
												</c:if>
											</c:forEach>
										</c:forEach>

									</ul>

								</div>
								<!-- news_list -->



							</ul>
						</div>




					</div>
					<!-- outer -->
				</div>
				<!--news结束-->
			</div>
			<!-- tab切换结束-->
			
			
			<div class="main">
				<div class="news">
					<div class="title">
						<h2 class="title_left">
							<c:forEach items="${newnavSecond}" var="item" begin="10" end="10">
								   ${item.name}
							 </c:forEach>

						</h2>
						<span class="title_right"><a href="#">More&gt;&gt;</a> </span>
					</div>
					<!--title结束-->

					<div class="pic_news">
						<c:forEach items="${newnavSecond}" var="item" begin="10" end="10">
									
										<c:set var="index" value="0"></c:set>
										<c:forEach items="${newlist}" var="art" begin="0">
										
											
											<c:if test="${art.nid==item.nid and !empty art.pic and index<1}">
											   <c:set var="index" value="${index + 1}"></c:set>
												<img src="<%=basePath%>upload/${art.pic}" alt="独家新闻"
													width="113" height="77" />
												<h2>
													<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a>
												</h2>
												<p>
													发布时间：${art.createdate}
													<br />
													作者：${art.author}
													<br />
							<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">Learn More>></a>
												</p>	
											</c:if>
										</c:forEach>
						</c:forEach>
					</div>
					<!--pic_news结束-->
					<div class="news_list">
						<ul>
							<c:set var="index" value="0"></c:set>
										<c:forEach items="${newnavSecond}" var="item" begin="10"
											end="10">
											<c:forEach items="${newlist}" begin="0" var="art">

												<c:if test="${item.nid==art.nid and index<4}">
													<c:set var="index" value="${index + 1}"></c:set>
													<li>
														<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a><span>${art.createdate}</span>
													</li>
												</c:if>
											</c:forEach>
							</c:forEach>
						
						
							
							
							
						</ul>
					</div>
				</div>
				<!--news结束-->
				<div class="course">
					<div class="title">
						<h2 class="title_left">
							<c:forEach items="${newnavSecond}" var="item" begin="7" end="7">
								   
							 </c:forEach>
						</h2>
						<span class="title_right"><a href="#">More&gt;&gt;</a> </span>
					</div>
					<!--title结束-->

					<div class="product_list">
						<c:forEach items="${newnavSecond}" var="item" begin="7" end="7">
									
										<c:set var="index" value="0"></c:set>
										<c:forEach items="${newlist}" var="art" begin="0">
										
											
											<c:if test="${art.nid==item.nid and !empty art.pic and index<1}">
											<c:set var="index" value="${index + 1}"></c:set>
												<img src="<%=basePath%>upload/${art.pic}" alt="系统动态"
													width="113" height="77" />
												<h2>
													<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">${art.title}</a>
												</h2>
												<p>
													发布时间：${art.createdate}
													<br />
													作者：${art.author}
													<br />
							<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}">Learn More>></a>
													
												</p>	
												
												
										  	
										  	
											</c:if>
										</c:forEach>
						</c:forEach>
					</div>
					<!--product_list结束-->
					<div class="product_type">
						<ul>
							<c:set var="index" value="0"></c:set>
										<c:forEach items="${newnavSecond}" var="item" begin="7"
											end="7">
											<c:forEach items="${newlist}" begin="0" var="art">

												<c:if test="${item.nid==art.nid and index<4}">
													<c:set var="index" value="${index + 1}"></c:set>
													<li>
														<a href="<%=basePath%>front/index?cmd=openarticle&nid=${art.nid}&pid=${art.pid}&pname=${art.pname}&aid=${art.aid}" style="text-decoration: none;color:red;">${art.title}</a>
													</li>
												</c:if>
											</c:forEach>
							</c:forEach>
						</ul>
					</div>
				</div>
				<!--course结束-->
				<div class="sidebar">
					<div class="video">
						<div class="title">
							<h2 class="title_left">

								<c:forEach items="${newnavSecond}" var="item" begin="6" end="6">
								   ${item.name}
							 </c:forEach>

							</h2>
							<span class="title_right"><a href="#">More&gt;&gt;</a> </span>
						</div>
						<!--title结束-->
						<p class="video_content">
							<c:forEach items="${newnavSecond}" var="item" begin="6" end="6">
									
										<c:set var="index" value="0"></c:set>
										<c:forEach items="${newlist}" var="art" begin="0">
										
											
											<c:if test="${art.nid==item.nid and !empty art.pic and index<1}">
											   <c:set var="index" value="${index + 1}"></c:set>
												<img src="<%=basePath%>upload/${art.pic}" alt="图片新闻"
													width="228" height="148" />
												
												
											</c:if>
										</c:forEach>
						</c:forEach>
						</p>
					</div>
					<!--video结束-->
					<div class="service">
						<img src="image/app.jpg" />
					</div>
				</div>
				<!--sidebar结束-->



			</div>
			<!--main结束-->
		</div>
		<!--最外层wrap结束  -->
		<%@include file="common/bottom.jsp"%>



		<!--copyright_content结束-->
	</body>
</html>